package day013.regex;

import java.util.Arrays;

public class RegexDemo06 {
    public static void main(String[] args) {
        String str1 = "aa123bb234cc909dd";
        String[] strs = str1.split("\\d+");
        System.out.println(Arrays.toString(strs));

        String str2 = "我卡里有100000000元，我告诉你卡的密码是123456，要保密哦";
        System.out.println(str2.replaceAll("\\d+", "*"));
    }
}
